package com.micromall.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 登陆用户表 SYS_USER
 * </p>
 *
 * @author Dante Fung
 * @since 2017-07-26
 */
@TableName("SYS_USER")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 登录帐号
     */
    @TableField("USER_CODE")
	private String userCode;
    /**
     * 是否检查IP CHECK_IP
     */
	@TableField("IP_CHECK")
	private String ipCheck;

    /**
     * 6至２０个字符
     */
	@TableField("PASSWORD")
	private String password;
    /**
     * 用户名/姓名
     */
	@TableField("USER_NAME")
	private String userName;
    /**
     * Q,代理商 P:配送中心 M:会员 C:公司用户 A:管理中心
     */
	@TableField("USER_TYPE")
	private String userType;
    /**
     * 默认语言
     */
	@TableField("DEF_CHARACTER_CODING")
	private String defCharacterCoding;
    /**
     * 公司编码
     */
	@TableField("COMPANY_CODE")
	private String companyCode;
    /**
     * 发货首选名称
     */
	@TableField("SHIPPING_FIRST_NAME")
	private String shippingFirstName;
    /**
     * 登录次数
     */
	@TableField("LOGIN_TIMES")
	private String loginTimes;
    /**
     * 当前登录时间
     */
	@TableField("CURRENT_LOGIN_TIME")
	private Date currentLoginTime;
    /**
     * 密码最后修改时间
     */
	@TableField("LAST_PWD_MODIFY_TIME")
	private Date lastPwdModifyTime;
    /**
     * 创建时间
     */
	@TableField("CREATE_TIME")
	private Date createTime;
    /**
     * 登入权限 １：启用　０：禁用　默认：１
     */
	@TableField("STATE")
	private String state;
    /**
     * 创建人编号
     */
	@TableField("CREATOR_CODE")
	private String creatorCode;
    /**
     * 高级密码，默认与u_password相同
     */
	@TableField("PASSWORD2")
	private String password2;
    /**
     * 暂停发货
     */
	@TableField("STOP_SHIPPING")
	private String stopShipping;
    /**
     * 暂停发货原因
     */
	@TableField("STOP_SHIPPING_CAUSE")
	private String stopShippingCause;
    /**
     * 最后登录时间
     */
	@TableField("LAST_LOGIN_TIME")
	private Date lastLoginTime;
    /**
     * 所在区域编码
     */
	@TableField("USER_AREA")
	private String userArea;
    /**
     * 发货备用名称
     */
	@TableField("SHIPPING_LAST_NAME")
	private String shippingLastName;


	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getIpCheck() {
		return ipCheck;
	}

	public void setIpCheck(String ipCheck) {
		this.ipCheck = ipCheck;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getDefCharacterCoding() {
		return defCharacterCoding;
	}

	public void setDefCharacterCoding(String defCharacterCoding) {
		this.defCharacterCoding = defCharacterCoding;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getShippingFirstName() {
		return shippingFirstName;
	}

	public void setShippingFirstName(String shippingFirstName) {
		this.shippingFirstName = shippingFirstName;
	}

	public String getLoginTimes() {
		return loginTimes;
	}

	public void setLoginTimes(String loginTimes) {
		this.loginTimes = loginTimes;
	}

	public Date getCurrentLoginTime() {
		return currentLoginTime;
	}

	public void setCurrentLoginTime(Date currentLoginTime) {
		this.currentLoginTime = currentLoginTime;
	}

	public Date getLastPwdModifyTime() {
		return lastPwdModifyTime;
	}

	public void setLastPwdModifyTime(Date lastPwdModifyTime) {
		this.lastPwdModifyTime = lastPwdModifyTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCreatorCode() {
		return creatorCode;
	}

	public void setCreatorCode(String creatorCode) {
		this.creatorCode = creatorCode;
	}

	public String getPassword2() {
		return password2;
	}

	public void setPassword2(String password2) {
		this.password2 = password2;
	}

	public String getStopShipping() {
		return stopShipping;
	}

	public void setStopShipping(String stopShipping) {
		this.stopShipping = stopShipping;
	}

	public String getStopShippingCause() {
		return stopShippingCause;
	}

	public void setStopShippingCause(String stopShippingCause) {
		this.stopShippingCause = stopShippingCause;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getUserArea() {
		return userArea;
	}

	public void setUserArea(String userArea) {
		this.userArea = userArea;
	}

	public String getShippingLastName() {
		return shippingLastName;
	}

	public void setShippingLastName(String shippingLastName) {
		this.shippingLastName = shippingLastName;
	}

	@Override
	protected Serializable pkVal() {
		return this.userCode;
	}

}
